import openpyxl
from openpyxl.workbook import Workbook
from openpyxl.worksheet.worksheet import Worksheet


class DoFiles():
    def doExeRead(self,f,stname,sr,er,sc,ec):
        wk:Workbook=openpyxl.load_workbook(f)
        st:Worksheet=wk[stname]
        s=st.iter_rows(sr,er,sc,ec,values_only=True)
        l=[i for i in s]
        return l
